﻿<%@ Page Title="Change Password" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="ChangePassword.aspx.cs" Inherits="ForrajeriaFRONT.Account.ChangePassword" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <center>
     
    <div >
   
 <asp:Label ID="lblMensaje" runat="server" Width="120px" Font-Size="Larger" ForeColor="Red" Visible="false"></asp:Label>
 <br />
 <br />

      
           
            
                  <table cellpadding="4" cellspacing="0" style="border-collapse:collapse;  border="1">
                    <tr>
                        <td>
                            <table cellpadding="0" style="height:333px;width:421px;">
                                <tr>
                                    <td align="center" colspan="3" 
                                        
                                        style="color:White;background-color:#009900; font-size:x-large;font-weight:bold;">
                                        Modificar Contraseña</td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" Text="Usuario" Font-Size="Large"></asp:Label>
                                    </td>
                                    <td colspan="2">
                                        <asp:TextBox ID="UserName" runat="server" Enabled="False"></asp:TextBox>
                                      
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="CurrentPasswordLabel" runat="server" 
                                            AssociatedControlID="CurrentPassword" Font-Size="Large" >Constraseña:</asp:Label>
                                    </td>
                                    <td class="style1" colspan="2">
                                        <asp:TextBox ID="CurrentPassword" runat="server" 
                                            TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="CurrentPasswordRequired" runat="server" 
                                            ControlToValidate="CurrentPassword" ErrorMessage="Constraseña requerida" 
                                            ToolTip="Constraseña requerida" ValidationGroup="ChangePassword1" 
                                            ForeColor="Red">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="NewPasswordLabel" runat="server" 
                                            AssociatedControlID="NewPassword" Font-Size="Large">Nueva Constraseña:</asp:Label>
                                    </td>
                                    <td class="style1" colspan="2" >
                                        <asp:TextBox ID="NewPassword" runat="server" 
                                            TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="NewPasswordRequired" runat="server" 
                                            ControlToValidate="NewPassword" ErrorMessage="Nueva Contraseña es requerida" 
                                            ToolTip="Nueva Contraseña es requerida" ValidationGroup="ChangePassword1" 
                                            ForeColor="Red">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="ConfirmNewPasswordLabel" runat="server" 
                                            AssociatedControlID="ConfirmNewPassword" Font-Size="Large">Confimar Nueva Contraseña:</asp:Label>
                                    </td>
                                    <td class="style1" colspan="2" >
                                        <asp:TextBox ID="ConfirmNewPassword" runat="server" 
                                            TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="ConfirmNewPasswordRequired" runat="server" 
                                            ControlToValidate="ConfirmNewPassword" ValidationGroup="ChangePassword1" 
                                            ForeColor="Red">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="3">
                                        <asp:CompareValidator ID="NewPasswordCompare" runat="server" 
                                            ControlToCompare="NewPassword" ControlToValidate="ConfirmNewPassword" 
                                            Display="Dynamic" ErrorMessage="Las Contraseñas nos coinciden" 
                                            ValidationGroup="ChangePassword1" Font-Size="Large" ForeColor="Red">*</asp:CompareValidator>
                                    </td>
                                </tr>
                              
                                <tr>
                                    <td align="right" >
                                                                            
                                                                            
                                          <asp:Button ID="btnInicio" runat="server" CausesValidation="False" 
                                              onclick="btnInicio_Click" Text="Inicio" />
                                                                            
                                                                            
                                      </td>
                                      <td>
                                        <asp:Button ID="btnCambiar" runat="server" onclick="btnCambiar_Click" 
                                                                                Text="Cambiar" />
                                      </td>
                                    <td  >
                                         <asp:Button ID="btnCancelar" runat="server" CausesValidation="False" 
                                                                                onclick="btnCancelar_Click" Text="Cancelar" /></td>
                                    
                                    
                              </tr>
                              
                            </table>
                        </td>
                    </tr>
                </table>

    </div>
      </center>
        </ChangePasswordTemplate>
    </asp:ChangePassword>
</asp:Content>
